package com.witdata.common.mapper;

import com.witdata.common.domain.dto.LogDto;
import com.witdata.mysql.domain.entity.TLog;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface LogMapper {

    LogMapper INSTANCE = Mappers.getMapper(LogMapper.class);

    TLog toTLog(LogDto logDto);

    LogDto toLogDto(TLog tLog);

    List<LogDto> toLogDtoList(List<TLog> tLogList);
}
